package com.seanchenxi.gwt.wordpress.xmlrpc.service.model.handler;

import com.seanchenxi.gwt.wordpress.domain.model.Page;
import com.seanchenxi.gwt.wordpress.xmlrpc.service.model.impl.ModelFactory;
import com.seanchenxi.gwt.xmlrpc.client.impl.BaseResponseHandler;

public class PageResponseHandler extends BaseResponseHandler<Page>{
	
	@Override
	public Page handleResponse(String response) {
		Object object = super.handleResponse(response);
		if(object==null) return null;
		return ModelFactory.ToPage(object);
	}
}
